package com.emmmya.ocs.modules.system.setting.serviceimpl;

import com.emmmya.ocs.common.base.BaseDao;
import com.emmmya.ocs.modules.system.setting.dao.SettingDao;
import com.emmmya.ocs.modules.system.setting.entity.Setting;
import com.emmmya.ocs.modules.system.setting.service.SettingService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @description:
 * @author: 咕噜肉IT小店-黑医
 * @createDate: 2020-05-13
 * @version: 1.0
 */
@Slf4j
@Service
@Transactional
public class SettingServiceImpl implements SettingService {
    @Autowired
    private SettingDao settingDao;

    @Override
    public BaseDao<Setting, Integer> getRepository() {
        return settingDao;
    }


    @Override
    public Setting findByKeySet(String keySet) {
        return settingDao.findByKeySet(keySet);
    }
}
